package io.gitee.yanbinchen;

import lombok.Data;

import java.lang.reflect.Parameter;
import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * @author: alex
 * @since : 2025-02-28 22:46
 */
@Data
public class MetaInfo {

    private String metaId;

    private SuperKey superKey;

    private DelSuperKey delSuperKey;


    public MetaInfo(String className, String methodName, Parameter[] parameters, SuperKey superKey, DelSuperKey delSuperKey) {
        this.metaId = className + methodName + Arrays.stream(parameters).map(Parameter::getName).collect(Collectors.joining());
        this.superKey = superKey;
        this.delSuperKey = delSuperKey;
    }
}
